public class Music extends File {
	private String album;

	public Music(String name, int date, String album) {
		super(name, date);
		this.album = album;
	}
	
	public String getAlbum() {
		return album;
	}
	
	@Override
	public boolean match(File file) {
		if (!super.match(file)) return false;
		if (!(file instanceof Music)) return false;
		if (!album.equals(((Music) file).getAlbum())) return false;
		return true;
	}
}
